package com.qf.shopping.dto.systemDTO;

import com.qf.shopping.pojo.System.User;

public class UserDTO {

    private int id;
    private String userName;//姓名
    private String name;//姓名
    private int isSuper;//是否超级会员

    public UserDTO(){}

    public UserDTO(User u){
        this.id=u.getId();
        this.userName=u.getUserName();
        this.name=u.getName();
        this.isSuper=u.getIsSuper();
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getIsSuper() {
        return isSuper;
    }

    public void setIsSuper(int isSuper) {
        this.isSuper = isSuper;
    }

    @Override
    public String toString() {
        return "UserDTO{" +
                "id=" + id +
                ", userName='" + userName + '\'' +
                ", name='" + name + '\'' +
                ", isSuper=" + isSuper +
                '}';
    }
}
